<form action="{actionUrl}" method="post" name="frmSub">
<input type="hidden" name="gametype" value="{gametype}" />
<table class=table0 border=0 cellpadding=3 cellspacing=1>
<tr class="bgClc_{gametype}"><td colspan=3>{pageTitle}</td></tr>

<tr class=td2>
<td class="bgClc_{gametype}">请输入设定专用密码</td>
<td><input name="loginpass" id="loginpass" type="password" value="" /></td>
<td><input type="button" value="送出" name="subLogin" onclick="return chkPassOK();"></td>
</tr>
<tr class=td2><td colspan=3 id="msg" style="color:red;">&nbsp;{msg}</td></tr>
</table>
</form>

<script language="JavaScript">
function chkPassDiff(){
  var oPa1 = document.getElementById("pass01").value;
  var oPa2 = document.getElementById("pass02").value;
  var oMsg = document.getElementById("msg");
   if(oPa2 == "" || oPa1 == ""){
    oMsg.innerHTML = "修改密码 :: 密码栏位不可空白";
    return false;
   }else if(oPa2 != oPa1){
    oMsg.innerHTML = "修改密码 :: 密码不相同";
    return false;  
   }else {
    document.forms["frmSub"].submit();
   }
}

function chkPassOK(){
  var oPa1 = document.getElementById("loginpass").value;
  var oMsg = document.getElementById("msg");
   if(oPa1 == ""){
    oMsg.innerHTML = "登入基本设定密码 :: 密码栏位不可空白";
    return false;
   }else {
    document.forms["frmSub"].submit();
   }
}
</script>